package com.yunquan.ohana.ui.calendar.event.month

import androidx.databinding.ObservableField
import com.yunquan.ohana.base.binding.command.BindingAction
import com.yunquan.ohana.base.binding.command.BindingCommand
import com.yunquan.ohana.base.ui.ItemViewModel
import com.yunquan.ohana.entity.ScheduleModel

class EventMonthChildItemViewModel(viewModel: EventMonthViewModel) : ItemViewModel<EventMonthViewModel>(viewModel) {
    var data: ScheduleModel? = null
    val title = ObservableField<String>()

    constructor(viewModel: EventMonthViewModel, data: ScheduleModel) : this(viewModel) {
        this.data = data
        this.title.set(data.title)
    }
}